chore: refactor knip CI to fail on issues and simplify comment format#2003
chore: refactor knip CI to fail on issues and simplify comment format#2003kodiakhq[bot] merged 8 commits intomainfrom
Conversation
- Remove main branch comparison (no more table/diff) - Only comment when issues are found; delete stale comments when clean - Refactored comment to a flat per-category breakdown of issues - Job fails via core.setFailed() when knip finds issues - Removed excluded categories (enumMembers, duplicates) from workflow - Added test fixtures (unused export + unused file) to verify workflow
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The knip JSON reporter nests unused files under issues[].files[] (not a top-level files array). This fixes the parsing so unused files are correctly reported in the PR comment.
E2E Test Results✅ All tests passed • 123 passed • 3 skipped • 1030s
Tests ran across 4 shards in parallel. |
PR Review
|
| "project": ["src/**/*.ts"] | ||
| } | ||
| }, | ||
| "ignore": ["scripts/dev-portal/**"], |
There was a problem hiding this comment.
existing knip issues
Summary
Simplify the knip GitHub Action and expand where it runs:
core.setFailed()when knip finds issues, so the check shows as failed on the PR.pushtrigger so knip also runs when commits land on main.How to test locally or on Vercel
References